<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TGlobal类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_global.html">TGlobal</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_global-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">awtk.TGlobal类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a6b03dc5cdd80341ace6fde62e8928536" id="r_a6b03dc5cdd80341ace6fde62e8928536"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b03dc5cdd80341ace6fde62e8928536">preInit</a> ()</td></tr>
<tr class="separator:a6b03dc5cdd80341ace6fde62e8928536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe08d7d0796898950a1bd8d17830751a" id="r_afe08d7d0796898950a1bd8d17830751a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afe08d7d0796898950a1bd8d17830751a">init</a> (int w, int h, <a class="el" href="enumawtk_1_1_t_app_type.html">TAppType</a> app_type, String app_name, String app_root)</td></tr>
<tr class="separator:afe08d7d0796898950a1bd8d17830751a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72365eeb6377915c777e62f0e492202d" id="r_a72365eeb6377915c777e62f0e492202d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a72365eeb6377915c777e62f0e492202d">run</a> ()</td></tr>
<tr class="separator:a72365eeb6377915c777e62f0e492202d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68ed3fc28b5b42299434a85f97ba9573" id="r_a68ed3fc28b5b42299434a85f97ba9573"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a68ed3fc28b5b42299434a85f97ba9573">quit</a> ()</td></tr>
<tr class="separator:a68ed3fc28b5b42299434a85f97ba9573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3633c33674021e305650114b77f3517a" id="r_a3633c33674021e305650114b77f3517a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3633c33674021e305650114b77f3517a">quitEx</a> (int delay)</td></tr>
<tr class="separator:a3633c33674021e305650114b77f3517a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0bbfb9aac2875ca4db5b9e449a4d042" id="r_af0bbfb9aac2875ca4db5b9e449a4d042"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af0bbfb9aac2875ca4db5b9e449a4d042">getPointerX</a> ()</td></tr>
<tr class="separator:af0bbfb9aac2875ca4db5b9e449a4d042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d0f2419cc923ddc2ecfbfc34b6125d0" id="r_a0d0f2419cc923ddc2ecfbfc34b6125d0"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0d0f2419cc923ddc2ecfbfc34b6125d0">getPointerY</a> ()</td></tr>
<tr class="separator:a0d0f2419cc923ddc2ecfbfc34b6125d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab758dba2d8f973cc2d9f9b5d1ccfd070" id="r_ab758dba2d8f973cc2d9f9b5d1ccfd070"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab758dba2d8f973cc2d9f9b5d1ccfd070">isPointerPressed</a> ()</td></tr>
<tr class="separator:ab758dba2d8f973cc2d9f9b5d1ccfd070"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>TK全局对象。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af0bbfb9aac2875ca4db5b9e449a4d042" name="af0bbfb9aac2875ca4db5b9e449a4d042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0bbfb9aac2875ca4db5b9e449a4d042">&#9670;&#160;</a></span>getPointerX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.TGlobal.getPointerX </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针的X坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针的X坐标。 </dd></dl>

</div>
</div>
<a id="a0d0f2419cc923ddc2ecfbfc34b6125d0" name="a0d0f2419cc923ddc2ecfbfc34b6125d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d0f2419cc923ddc2ecfbfc34b6125d0">&#9670;&#160;</a></span>getPointerY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.TGlobal.getPointerY </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针的Y坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针的X坐标。 </dd></dl>

</div>
</div>
<a id="afe08d7d0796898950a1bd8d17830751a" name="afe08d7d0796898950a1bd8d17830751a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe08d7d0796898950a1bd8d17830751a">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TGlobal.init </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>w</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_t_app_type.html">TAppType</a></td>          <td class="paramname"><span class="paramname"><em>app_type</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>app_name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>app_root</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>初始化TK。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>LCD宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>LCD高度。 </td></tr>
    <tr><td class="paramname">app_type</td><td>应用程序的类型。 </td></tr>
    <tr><td class="paramname">app_name</td><td>应用程序的名称(必须为常量字符串)。 </td></tr>
    <tr><td class="paramname">app_root</td><td>应用程序的根目录，用于定位资源文件(必须为常量字符串)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab758dba2d8f973cc2d9f9b5d1ccfd070" name="ab758dba2d8f973cc2d9f9b5d1ccfd070"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab758dba2d8f973cc2d9f9b5d1ccfd070">&#9670;&#160;</a></span>isPointerPressed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean awtk.TGlobal.isPointerPressed </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针是否按下。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针是否按下。 </dd></dl>

</div>
</div>
<a id="a6b03dc5cdd80341ace6fde62e8928536" name="a6b03dc5cdd80341ace6fde62e8928536"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b03dc5cdd80341ace6fde62e8928536">&#9670;&#160;</a></span>preInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TGlobal.preInit </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>初始化基本功能。 </p><blockquote class="doxtable">
<p>在tk_init之前，应用程序可能需要加载配置文件， 为了保证这些功能正常工作，可以先调用tk_pre_init来初始化平台、内存和data reader等等。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a68ed3fc28b5b42299434a85f97ba9573" name="a68ed3fc28b5b42299434a85f97ba9573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68ed3fc28b5b42299434a85f97ba9573">&#9670;&#160;</a></span>quit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TGlobal.quit </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>退出TK事件主循环。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3633c33674021e305650114b77f3517a" name="a3633c33674021e305650114b77f3517a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3633c33674021e305650114b77f3517a">&#9670;&#160;</a></span>quitEx()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TGlobal.quitEx </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>delay</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>退出TK事件主循环。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delay</td><td>延迟退出的时间(毫秒)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a72365eeb6377915c777e62f0e492202d" name="a72365eeb6377915c777e62f0e492202d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72365eeb6377915c777e62f0e492202d">&#9670;&#160;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TGlobal.run </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>进入TK事件主循环。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<b>TGlobal.java</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
